
<div class="evaluation">    
    <form name="evaluationForm" id="evaluationForm"  action="<?php echo base_url()."index.php/evaluer/enregistrerQuestion"; ?>" method="POST">         
    <div class="evaluationListe">
        <div class="evaluationListeTitre">
            <span>Evaluation Module : <?php echo $formation[0]->nom; ?> </span>
        </div>
        <div class="evaluationListeEtape">
            <span>Etape 1 - Evaluez l'enseignant :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
        </div>       
        <input type="hidden" name="idmodule" value="<?php echo $formation[0]->idmodule; ?>"/>
        <input type="hidden" name="typeEval" value="<?php echo $typeEval; ?>"/>        
        <div class="evaluationQuestion">
            <?php
                foreach ($listeQuestion->result() as $row)
                { 
                    echo "<span><label>".$row->Nomquestion."</label>";
                    if($row->typequestion==1)
                    {
                        echo "<input type='radio' class='radioType1' name='question_".$row->idquestion."_".$row->typequestion."' value=1>Oui &nbsp; <input type='radio' name='question_".$row->idquestion."_".$row->typequestion."' value=0>Non";
                    }
                    if($row->typequestion==2)
                    {
                        echo "<input type='text' class='texteType1' name='question_".$row->idquestion."_".$row->typequestion."' />";
                    }
                    if($row->typequestion==3)
                    {
                        echo "<br/><textarea name='question_".$row->idquestion."_".$row->typequestion."' cols='91' rows='5'  ></textarea>";
                    }
                    if($row->typequestion==4)
                    {
                        echo "<input type='radio' class='radioType2' name='question_".$row->idquestion."_".$row->typequestion."' value=1>1 &nbsp; <input type='radio' name='question_".$row->idquestion."_".$row->typequestion."' value=2>2 &nbsp; <input type='radio' name='question_".$row->idquestion."_".$row->typequestion."' value=3>3 &nbsp; <input type='radio' name='question_".$row->idquestion."_".$row->typequestion."' value=4>4 &nbsp; <input type='radio' name='question_".$row->idquestion."_".$row->typequestion."' value=5>5 &nbsp; <input type='radio' name='question_".$row->idquestion."_".$row->typequestion."' value=6>6 &nbsp; <input type='radio' name='question_".$row->idquestion."_".$row->typequestion."' value=7>7 &nbsp; <input type='radio' name='question_".$row->idquestion."_".$row->typequestion."' value=8>8 &nbsp; <input type='radio' name='question_".$row->idquestion."_".$row->typequestion."' value=9>9 &nbsp; <input type='radio' name='question_".$row->idquestion."_".$row->typequestion."' value=10>10" ;
                    }
                    if($row->typequestion==5)
                    {
                        echo "<input type='radio' class='radioType1' name='question_".$row->idquestion."_".$row->typequestion."_a' value=1>Oui &nbsp; <input type='radio' name='question_".$row->idquestion."_".$row->typequestion."_a' value=0>Non";
                        echo "<span class='questiontype5'><br/>Si oui <input type='text'  name='question_".$row->idquestion."_".$row->typequestion."_b' /></span>";
                    }
                    if($row->typequestion==6)
                    {
                       echo "<div >
                                <table id='arrayModules' class='display' cellspacing='0' >
                                <thead>
                                    <tr>
                                        <th>Nom module</th>
                                        <th></th>                    
                                    </tr>
                                </thead>
                                <tbody>";
                            
                        foreach ($listeModuleAll->result() as $row2)
                        {           
                            echo "<tr><td>".$row2->nom."</td><td><input type='checkbox' class='checkbox1' value=".$row2->idmodule."  name='question_".$row->idquestion."_".$row->typequestion."[]' /></td></tr>";
                        }                
                       echo "</tbody></table></div> ";
                    }
                     if($row->typequestion==7)
                    {             
                        echo "<select class='select1' name='question_".$row->idquestion."_".$row->typequestion.">";
                        echo "<option value='-1'>Selectionner un semestre</option>";
                        foreach ($listeSemestre as $row2)
                        {           
                            echo "<option value='".$row2->mySem."'>".$row2->libelle."</option>";
                        }                               
                    }
                    echo "</span>";
                }
            ?>            
        </div>        
        <input type="button" id="btnSubmitValideReponse1" name="btnSubmitValideReponse1" value="Valider" />
        <div id="idErrorValiderReponse1" class="errorValiderReponse1"><span>Toutes les r&eacute;ponses sont obligatoires !</span></div>   
    </div>
    </form>
</div>